﻿using YNTK.Common.Const;
using SqlSugar;
using System;

namespace YNTK.SubDev.Entitys
{
    /// <summary>
    /// 项目合同
    /// </summary>
    [SugarTable("zy_zb_contract")]
    [Tenant(ClaimConst.TENANT_ID)]
    public class ZyZbContractEntity
    {
        /// <summary>
        /// 主键id
        /// </summary>
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
        public string Id { get; set; }
        
        /// <summary>
        /// 合同编号
        /// </summary>
        [SugarColumn(ColumnName = "ContractID")]        
        public string ContractId { get; set; }
        
        /// <summary>
        /// 合同类型
        /// </summary>
        [SugarColumn(ColumnName = "ContractType")]        
        public string ContractType { get; set; }
        
        /// <summary>
        /// 项目名称
        /// </summary>
        [SugarColumn(ColumnName = "ProName")]        
        public string ProName { get; set; }
        
        /// <summary>
        /// 合同状态
        /// </summary>
        [SugarColumn(ColumnName = "State")]        
        public int? State { get; set; }
        
        /// <summary>
        /// 合同甲方
        /// </summary>
        [SugarColumn(ColumnName = "PartyA")]        
        public string PartyA { get; set; }
        
        /// <summary>
        /// 合同乙方
        /// </summary>
        [SugarColumn(ColumnName = "PartyB")]        
        public string PartyB { get; set; }
        
        /// <summary>
        /// 合同丙方
        /// </summary>
        [SugarColumn(ColumnName = "PartyC")]        
        public string PartyC { get; set; }
        
        /// <summary>
        /// 签约时间
        /// </summary>
        [SugarColumn(ColumnName = "SigningTime")]        
        public DateTime? SigningTime { get; set; }
        
        /// <summary>
        /// 合同阶段
        /// </summary>
        [SugarColumn(ColumnName = "Stage")]        
        public string Stage { get; set; }
        
        /// <summary>
        /// 合同金额(元)
        /// </summary>
        [SugarColumn(ColumnName = "Amount")]        
        public decimal Amount { get; set; }
        
        /// <summary>
        /// 履约时间
        /// </summary>
        [SugarColumn(ColumnName = "StartTime")]        
        public DateTime? StartTime { get; set; }
        
        /// <summary>
        /// 结束时间
        /// </summary>
        [SugarColumn(ColumnName = "EndTime")]        
        public DateTime? EndTime { get; set; }
        
        /// <summary>
        /// 合同说明
        /// </summary>
        [SugarColumn(ColumnName = "Remark")]        
        public string Remark { get; set; }
        
        /// <summary>
        /// 中标通知书
        /// </summary>
        [SugarColumn(ColumnName = "BidNotice")]        
        public string BidNotice { get; set; }
        
        /// <summary>
        /// 合同附件
        /// </summary>
        [SugarColumn(ColumnName = "Appendix")]        
        public string Appendix { get; set; }
        
        /// <summary>
        /// 项目类型
        /// </summary>
        [SugarColumn(ColumnName = "Spare1")]        
        public string Spare1 { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "Spare2")]        
        public string Spare2 { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "Spare3")]        
        public string Spare3 { get; set; }
        
        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnName = "Creater")]        
        public string Creater { get; set; }
        
        /// <summary>
        /// 创建日期
        /// </summary>
        [SugarColumn(ColumnName = "CreateDate")]        
        public object CreateDate { get; set; }
        
        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "CreateTime")]        
        public DateTime? CreateTime { get; set; }
        
        /// <summary>
        /// 最后修改人
        /// </summary>
        [SugarColumn(ColumnName = "Modifyer")]        
        public string Modifyer { get; set; }
        
        /// <summary>
        /// 修改时间
        /// </summary>
        [SugarColumn(ColumnName = "ModifyTime")]        
        public DateTime? ModifyTime { get; set; }
        
        /// <summary>
        /// 对方签约人
        /// </summary>
        [SugarColumn(ColumnName = "LastHander")]        
        public string LastHander { get; set; }
        
        /// <summary>
        /// 我方签约人
        /// </summary>
        [SugarColumn(ColumnName = "DesPersonName")]        
        public string DesPersonName { get; set; }
        
        /// <summary>
        /// 最后状态
        /// </summary>
        [SugarColumn(ColumnName = "LastTrackState")]        
        public int? LastTrackState { get; set; }
        
        /// <summary>
        /// 丙方签约人
        /// </summary>
        [SugarColumn(ColumnName = "PartyCName")]        
        public string PartyCName { get; set; }
        
        /// <summary>
        /// 对方联系方式
        /// </summary>
        [SugarColumn(ColumnName = "LastHanderMobile")]        
        public string LastHanderMobile { get; set; }
        
        /// <summary>
        /// 丙方联系方式
        /// </summary>
        [SugarColumn(ColumnName = "PartyCnMobile")]        
        public string PartyCnMobile { get; set; }
        
    }
}
